home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / CPP / WCLASS95.ZIP / BCFUNC.SCT < prev    next >
Encoding:
Text File  |  1995-07-16  |  1.5 KB  |  43 lines

  1. // Class: CLASS_NAME
  2.  
  3. //////////////////////////.cpp file/////////////////////////////////////////////////////
  4. #include "$TRUNCATE_EIGHT$CLASS_NAME$.h"                    
  5.  
  6. // Functions for class CLASS_NAME
  7. [
  8. //  Function:     OPERATION_NAME
  9. //  Purpose:     OPERATION_COMMENT1
  10. //  Parameters: CPP_OPERATION_PARAMETERS
  11. //  Comments:     OPERATION_COMMENT2
  12. OPERATION_RETURN_TYPE CLASS_NAME::OPERATION_NAME(CPP_OPERATION_PARAMETERS) CPP_OPERATION_CONSTANT
  13. {
  14.   OPERATION_CODE
  15. }
  16.  
  17.             //Operator<< insertion for cout
  18.             //Update to access 1:M part class attributes
  19.             //Update to access 1:1 associated class attributes
  20.             //Update to access 1:M associated class attributes     
  21. ostream& operator<< (ostream& os, CLASS_NAME$& a$CLASS_NAME)
  22. {
  23. [  os << (BASE_CLASS &) a$CLASS_NAME;]
  24.   os << "Object Attribute Values - Class CLASS_NAME" << "\n";
  25. [  os << "ATTRIBUTE_NAME: " << a$CLASS_NAME$.$ATTRIBUTE_NAME << "\n";]
  26. [  os << "  AGGREGATION_ONE_NAME$: " << a$CLASS_NAME$.$AGGREGATION_ONE_NAME << "\n";]
  27.   return os;
  28. }            
  29.  
  30.             //Operator>> extraction for cin
  31.             //Update to access 1:M part class attributes
  32.             //Update to access 1:1 associated class attributes
  33.             //Update to access 1:M associated class attributes 
  34. istream& operator>> (istream& is, CLASS_NAME$& a$CLASS_NAME)
  35. {
  36. [  is >> (BASE_CLASS &) a$CLASS_NAME;]
  37.   cout << "\nEnter Object Attibute Values - Class CLASS_NAME"; 
  38. [  cout << "\nEnter ATTRIBUTE_NAME : " << "\n";
  39.   is >> a$CLASS_NAME$.$ATTRIBUTE_NAME;]        
  40. [  is >> a$CLASS_NAME$.$AGGREGATION_ONE_NAME;]
  41.   return is;
  42. }